from google.appengine.ext import webapp
from libs import utils

class Action(webapp.RequestHandler):
    
    def param(self, name, type = "str"):
        
        #if self.request.get(name) == "": return None;
        
        if type == "int": return utils.toInt(self.request.get(name));
        
        if type == "id": return utils.ids2id(self.request.get(name));
        
        return self.request.get(name);